<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<meta name="format-detection" content="telephone=no">
	<meta content="telephone=no" name="format-detection">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link href="<%=basePath %>resources/assets/stylesheets/main.css" rel="stylesheet" type="text/css" />
	<title>个人信息</title>
</head>
<body>
	<div class="html register" id="J_html">
		<p class="top"><img src="<%=basePath %>resources/assets/img/icon.jpeg" class="top-i"></p>
		<p class="til">我的二维码</p>
		<div class="form" role="form">
			<img id="qrcode"/>
		</div>
	</div>
	<script language="javascript" type="text/javascript" src="<%=basePath %>resources/assets/javascript/jquery-2.1.4.min.js"></script>
	<script language="javascript" type="text/javascript" src="<%=basePath %>resources/assets/javascript/func.js"></script>
	<script type="text/javascript">
        var wtype = window.innerWidth<1000?'wap':'pc';
		$(function(){
			var accessId = "${user.accessId}"
               $.ajax({
               	    type : "get" ,
                   url: "<%=basePath %>users/qrcode?superAccessId="+accessId,
                   success: function(res){
                   		console.log(res);
                       if(res.status==0){
                       	   $("#qrcode").attr("src",res.domain);
                       }else {
                           errormsg($("#mobile"),res.message);
                       }
                   },
                   complete:function(){
                       isajax = false;
                       $('#J_btn').html('提交')
                   }
               });
		});
	</script>
</body>
</html>
